// part1:C09:ex9.50.cpp
// sum of elements of vector<string>.
#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main(void) {
  vector<string> vec = {"123", "+456", "-789"};
  int sum1 = 0;

  for (auto iter = vec.begin(); iter != vec.end(); iter++) {
    sum1 += stoi(*iter);
  }
  cout << "sum of vector<string> is : " << sum1 << endl;

  return 0;
}
